var express = require('express');
var router = express.Router();
const { getGoldData } = require('../plugin/dataCrawler');

/* GET home page. */
router.get('/get', async function (req, res, next) {
    const { SJSData,
        SBData,
        otherBrands, } = await getGoldData();
    res.send({
        code: 1,
        data: {
            SJSData,
            SBData,
            otherBrands,
        },
        msg: '获取成功'
    })
});

module.exports = router;